<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Aestate: aestate/opera/DBPool/persistent_db.py Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aestate
   &#160;<span id="projectnumber">1.0.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_374ee6e3281d8312d956f1f155302869.html">aestate</a></li><li class="navelem"><a class="el" href="dir_3d2a62c9f0038653f55551d1ba6b2e78.html">opera</a></li><li class="navelem"><a class="el" href="dir_222c18a5940c41eb83d2a46ecf15e75c.html">DBPool</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">persistent_db.py</div>  </div>
</div><!--header-->
<div class="contents">
<a href="persistent__db_8py.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1opera_1_1_d_b_pool_1_1persistent__db.html">    1</a></span>&#160;<span class="keyword">from</span> . <span class="keyword">import</span> __version__</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="keyword">from</span> .steady_db <span class="keyword">import</span> connect</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;    <span class="comment"># 纯python实现的thread lock</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;    <span class="keyword">from</span> _threading_local <span class="keyword">import</span> local</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keywordflow">except</span> ImportError:</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;    <span class="comment"># 默认版本的thread locak</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;    <span class="keyword">from</span> threading <span class="keyword">import</span> local</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_error.html">   12</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_error.html">PersistentDBError</a>(Exception):</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;    <span class="stringliteral">&quot;&quot;&quot;General PersistentDB error.&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_not_supported_error.html">   16</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_not_supported_error.html">NotSupportedError</a>(<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_error.html">PersistentDBError</a>):</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="stringliteral">&quot;&quot;&quot;DB-API module not supported by PersistentDB.&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html">   20</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html">PersistentDB</a>:</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="stringliteral">&quot;&quot;&quot;生成基于db-api2的数据库连接池对象</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="stringliteral">    &quot;&quot;&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#ab7866cd07c651e5adfa84953cb041906">   24</a></span>&#160;    version = __version__</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a494ff676c635db89554562235e5b9fd6">   26</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a494ff676c635db89554562235e5b9fd6">__init__</a>(</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;            self, creator,</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;            maxusage=None, setsession=None, failures=None, ping=1,</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;            closeable=False, threadlocal=None, *args, **kwargs):</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="stringliteral">        设置持久性DB-API 2连接生成器。</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="stringliteral"></span> </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="stringliteral">        创建者：返回新的DB-API 2的任意函数</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="stringliteral">            连接对象或符合DB-API 2的数据库模块</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="stringliteral">        maxusage：连接池最大数量，0表示无限</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="stringliteral">        setsession：可用于准备的SQL命令的可选列表</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="stringliteral">            会话，例如[“将日期样式设置为...”，“将时区设置为...”]</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="stringliteral">        失败：可选的异常类或异常类的元组</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="stringliteral">            为此，应应用连接故障转移机制，</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="stringliteral">            如果默认值（OperationalError，InternalError）不足够</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="stringliteral">        ping：确定何时应使用ping（）检查连接</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="stringliteral">            （0 =无=永不，1 =默认=每当被请求时，</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="stringliteral">            2 =创建游标时，4 =执行查询时，</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="stringliteral">            7 =始终，以及这些值的所有其他位组合）</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="stringliteral">        closeable：设置为True将允许被关闭</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="stringliteral">        threadlocal：线程独立</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="stringliteral">        &quot;&quot;&quot;</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;            threadsafety = creator.threadsafety</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <span class="keywordflow">except</span> AttributeError:</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;            <span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                <span class="keywordflow">if</span> <span class="keywordflow">not</span> callable(creator.connect):</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                    <span class="keywordflow">raise</span> AttributeError</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;            <span class="keywordflow">except</span> AttributeError:</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                threadsafety = 1</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;            <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a482f96d816e6986324983935e93db559">   57</a></span>&#160;                threadsafety = 0</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a09ed9e2a3bab94ea973824c919201e73">   58</a></span>&#160;        <span class="keywordflow">if</span> <span class="keywordflow">not</span> threadsafety:</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a2f25c221a4576c5d39374f3db5082ed6">   59</a></span>&#160;            <span class="keywordflow">raise</span> <a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_not_supported_error.html">NotSupportedError</a>(<span class="stringliteral">&quot;数据库模块未分配线程安全&quot;</span>)</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a46d3a717078c41387678c7fcbb91897e">   60</a></span>&#160;        self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a482f96d816e6986324983935e93db559">_creator</a> = creator</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#abfb229beab38e9620e5508deaf6854cf">   61</a></span>&#160;        self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a09ed9e2a3bab94ea973824c919201e73">_maxusage</a> = maxusage</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a395402a31d514e2563b603398ed056e6">   62</a></span>&#160;        self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a2f25c221a4576c5d39374f3db5082ed6">_setsession</a> = setsession</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#af327cc3d8c342ab4e850f1bb2e5164ab">   63</a></span>&#160;        self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a46d3a717078c41387678c7fcbb91897e">_failures</a> = failures</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a09a9b388e5760f283a6acbf42e3d4eda">   64</a></span>&#160;        self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#abfb229beab38e9620e5508deaf6854cf">_ping</a> = ping</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a395402a31d514e2563b603398ed056e6">_closeable</a> = closeable</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        self._args, self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#af327cc3d8c342ab4e850f1bb2e5164ab">_kwargs</a> = args, kwargs</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a09a9b388e5760f283a6acbf42e3d4eda">thread</a> = (threadlocal <span class="keywordflow">or</span> local)()</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a873a9fdf637840f8f5ef989109d6bd11">   69</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a873a9fdf637840f8f5ef989109d6bd11">steady_connection</a>(self):</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="stringliteral">&quot;&quot;&quot;Get a steady, non-persistent DB-API 2 connection.&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="namespaceaestate_1_1opera_1_1_d_b_pool_1_1steady__db.html#ac744dc4ab3e2dabdd34d3441e7d9ab5c">connect</a>(</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a482f96d816e6986324983935e93db559">_creator</a>, self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a09ed9e2a3bab94ea973824c919201e73">_maxusage</a>, self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a2f25c221a4576c5d39374f3db5082ed6">_setsession</a>,</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a46d3a717078c41387678c7fcbb91897e">_failures</a>, self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#abfb229beab38e9620e5508deaf6854cf">_ping</a>, self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a395402a31d514e2563b603398ed056e6">_closeable</a>,</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            *self._args, **self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#af327cc3d8c342ab4e850f1bb2e5164ab">_kwargs</a>)</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a73893f5de059b9e2f96496d3186c6996">   76</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a73893f5de059b9e2f96496d3186c6996">connection</a>(self, shareable=False):</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="stringliteral">&quot;&quot;&quot;共享连接</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="stringliteral">        长时间未关闭则不会被共享</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="stringliteral">        &quot;&quot;&quot;</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;            con = self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a09a9b388e5760f283a6acbf42e3d4eda">thread</a>.connection</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keywordflow">except</span> AttributeError:</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            con = self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a873a9fdf637840f8f5ef989109d6bd11">steady_connection</a>()</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;            <span class="keywordflow">if</span> <span class="keywordflow">not</span> con.threadsafety():</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;                <span class="keywordflow">raise</span> <a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_not_supported_error.html">NotSupportedError</a>(<span class="stringliteral">&quot;数据库模块未分配线程安全&quot;</span>)</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a09a9b388e5760f283a6acbf42e3d4eda">thread</a>.connection = con</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        con._ping_check()</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        <span class="keywordflow">return</span> con</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a6ddfe0be6b91cc7658b200487e3b2ba9">   90</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a6ddfe0be6b91cc7658b200487e3b2ba9">dedicated_connection</a>(self):</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <span class="stringliteral">&quot;&quot;&quot;Alias for connection(shareable=False).&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="keywordflow">return</span> self.<a class="code" href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a73893f5de059b9e2f96496d3186c6996">connection</a>()</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html_a2f25c221a4576c5d39374f3db5082ed6"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a2f25c221a4576c5d39374f3db5082ed6">aestate.opera.DBPool.persistent_db.PersistentDB._setsession</a></div><div class="ttdeci">_setsession</div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00059">persistent_db.py:59</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html_a73893f5de059b9e2f96496d3186c6996"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a73893f5de059b9e2f96496d3186c6996">aestate.opera.DBPool.persistent_db.PersistentDB.connection</a></div><div class="ttdeci">def connection(self, shareable=False)</div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00076">persistent_db.py:76</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html_a482f96d816e6986324983935e93db559"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a482f96d816e6986324983935e93db559">aestate.opera.DBPool.persistent_db.PersistentDB._creator</a></div><div class="ttdeci">_creator</div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00057">persistent_db.py:57</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html_a873a9fdf637840f8f5ef989109d6bd11"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a873a9fdf637840f8f5ef989109d6bd11">aestate.opera.DBPool.persistent_db.PersistentDB.steady_connection</a></div><div class="ttdeci">def steady_connection(self)</div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00069">persistent_db.py:69</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_error_html"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_error.html">aestate.opera.DBPool.persistent_db.PersistentDBError</a></div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00012">persistent_db.py:12</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html_a46d3a717078c41387678c7fcbb91897e"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a46d3a717078c41387678c7fcbb91897e">aestate.opera.DBPool.persistent_db.PersistentDB._failures</a></div><div class="ttdeci">_failures</div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00060">persistent_db.py:60</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html_af327cc3d8c342ab4e850f1bb2e5164ab"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#af327cc3d8c342ab4e850f1bb2e5164ab">aestate.opera.DBPool.persistent_db.PersistentDB._kwargs</a></div><div class="ttdeci">_kwargs</div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00063">persistent_db.py:63</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html_abfb229beab38e9620e5508deaf6854cf"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#abfb229beab38e9620e5508deaf6854cf">aestate.opera.DBPool.persistent_db.PersistentDB._ping</a></div><div class="ttdeci">_ping</div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00061">persistent_db.py:61</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html_a09a9b388e5760f283a6acbf42e3d4eda"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a09a9b388e5760f283a6acbf42e3d4eda">aestate.opera.DBPool.persistent_db.PersistentDB.thread</a></div><div class="ttdeci">thread</div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00064">persistent_db.py:64</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html_a09ed9e2a3bab94ea973824c919201e73"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a09ed9e2a3bab94ea973824c919201e73">aestate.opera.DBPool.persistent_db.PersistentDB._maxusage</a></div><div class="ttdeci">_maxusage</div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00058">persistent_db.py:58</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html_a494ff676c635db89554562235e5b9fd6"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a494ff676c635db89554562235e5b9fd6">aestate.opera.DBPool.persistent_db.PersistentDB.__init__</a></div><div class="ttdeci">def __init__(self, creator, maxusage=None, setsession=None, failures=None, ping=1, closeable=False, threadlocal=None, *args, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00026">persistent_db.py:26</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_not_supported_error_html"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_not_supported_error.html">aestate.opera.DBPool.persistent_db.NotSupportedError</a></div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00016">persistent_db.py:16</a></div></div>
<div class="ttc" id="anamespaceaestate_1_1opera_1_1_d_b_pool_1_1steady__db_html_ac744dc4ab3e2dabdd34d3441e7d9ab5c"><div class="ttname"><a href="namespaceaestate_1_1opera_1_1_d_b_pool_1_1steady__db.html#ac744dc4ab3e2dabdd34d3441e7d9ab5c">aestate.opera.DBPool.steady_db.connect</a></div><div class="ttdeci">def connect(creator, maxusage=None, setsession=None, failures=None, ping=1, closeable=True, *args, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="steady__db_8py_source.html#l00017">steady_db.py:17</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html_a6ddfe0be6b91cc7658b200487e3b2ba9"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a6ddfe0be6b91cc7658b200487e3b2ba9">aestate.opera.DBPool.persistent_db.PersistentDB.dedicated_connection</a></div><div class="ttdeci">def dedicated_connection(self)</div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00090">persistent_db.py:90</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html_a395402a31d514e2563b603398ed056e6"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html#a395402a31d514e2563b603398ed056e6">aestate.opera.DBPool.persistent_db.PersistentDB._closeable</a></div><div class="ttdeci">_closeable</div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00062">persistent_db.py:62</a></div></div>
<div class="ttc" id="aclassaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b_html"><div class="ttname"><a href="classaestate_1_1opera_1_1_d_b_pool_1_1persistent__db_1_1_persistent_d_b.html">aestate.opera.DBPool.persistent_db.PersistentDB</a></div><div class="ttdef"><b>Definition:</b> <a href="persistent__db_8py_source.html#l00020">persistent_db.py:20</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
